#include "STGGame.h"

template<> CSTGGame* Ogre::Singleton<CSTGGame>::ms_Singleton = 0;

int CSTGState::getState( const std::string &state ) const
{
    std::map<std::string, int>::const_iterator iter = mState.find(state);
    if (iter != mState.end()) {
        return iter->second;
    }
    else {
        return -1;
    }
}

bool CSTGState::setState( const std::string &state, int value )
{
    std::map<std::string, int>::iterator iter = mState.find(state);
    if (iter != mState.end()) {
        iter->second = value;
        return true;
    }
    else {
        return false;
    }
}    

//
//CSTGScene::CSTGScene( const std::string &name )
//{
//
//}